package cn.topevery.garden.dal.dao;

import cn.topevery.garden.entity.po.TaskPersonRelation;
import cn.topevery.garden.entity.query.TaskPersonRelationQuery;
import cn.topevery.garden.entity.vo.TaskPersonRelationVO;
import cn.topevery.garden.framework.base.BaseDao;
import hw.topevery.framework.db.entity.DataPager;

/**
 * 人员任务关系表
 *
 * @author code-generate
 * @date 2021-09-02
 */
public interface TaskPersonRelationDao extends BaseDao<TaskPersonRelation> {

    

    /**
     * 获取列表
     *
     * @param query
     */
    DataPager<TaskPersonRelationVO> listPage(TaskPersonRelationQuery query);

    void deleteByTaskId(Integer userId, Integer taskId);

    void deleteByUserId(Integer userId);

    TaskPersonRelation getByPersonId(Integer personId);

    TaskPersonRelation getByTaskId(Integer taskId);


}
